NetworkClient
StockSharp.Fix.Native
Abstract base class for UDP network clients.
Наследует: BaseLogReceiver
Реализует: INetworkClient, ILogReceiver, ILogSource, IDisposable, IPacketProcessor
Конструкторы
NetworkClient(IUdpDialect, string, MulticastSourceAddress, Func<T, IMemoryOwner<byte>, List<Message>, bool>, IPacketReceiverFactory)
Initializes a new instance of the NetworkClient class.
- dialect
- The UDP dialect.
- name
- The client name.
- address
- The multicast source address.
- processMessage
- Function to process received messages.
- receiverFactory
- IPacketReceiverFactory
Свойства
Dialect : IUdpDialect
Gets the UDP dialect associated with this client.
FullMode : PacketQueueFullModes
Behavior when the packet queue is full.
MaxIncomingQueueSize : int
Maximum buffered incoming UDP packets per feed before new packets are dropped.
MaxUdpDatagramSize : int
Maximum UDP datagram size.
Методы
AllocatePacket(int) : IMemoryOwner<byte>
To allocate a packet of the specified size.
- size
- The size of the packet to allocate.
Возвращает: The packet.
Connect()
Connect to trading system.
Disconnect()
Disconnect from trading system.
DisposeManaged()
Release resources.
DisposePacket(IMemoryOwner<byte>, string)
Disposes the packet with the specified reason.
- packet
- The packet.
- reason
- The specified reason.
ErrorHandler(Exception, int, bool)
Handles errors that occur during packet processing.
- e
- The exception encountered.
- numErrors
- The error count.
- isFatal
- Indicates whether the error is fatal.